unit Main;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, ComCtrls;

type
  TFormMain = class(TForm)
    Image1: TImage;
    Panel1: TPanel;
    procedure FormCreate(Sender: TObject);
    procedure Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
      Y: Integer);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormMain: TFormMain;

implementation

{$R *.dfm}

procedure TFormMain.FormCreate(Sender: TObject);
begin
  Image1.Width := 740;
  Image1.Height := 1200;
  Image1.Picture.LoadFromFile('C:\Image3.bmp');

  Panel1.Parent := Self;
end;

procedure TFormMain.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
var
  p,P1 : TPoint;
begin
  p.X := X;
  p.Y := Y;


  P1 := Image1.ClientToParent(P);
  Panel1.Left := P1.X;
  Panel1.Top := P1.Y;
  Panel1.Caption := Format('X:%d  Y:%d ',[X,Y]);
end;

end.
